<template>
	<el-menu v-bind="$attrs">
		<!-- v-on="$listeners" -->
		<menu-tree-item @click="menuClick" :list="tree" index="1" v-bind="$attrs"></menu-tree-item>
	</el-menu>
</template>

<script lang="ts">
import { ref, watch } from 'vue';
import menuTreeItem from './menu-tree-item.vue';
export default {
	name: 'menuTree',
	components: {
		menuTreeItem,
	},
	props: {
		tree: Array,
	},
	emits: ['click'],
	data() {
		return {

		}
	},
	methods: {
		menuClick(e: any) {
			this.$emit('click', e);
		}
	}
}
</script>

<style></style>
